package com.example.kotlindemo.ktx

import android.animation.Animator
import android.animation.ValueAnimator
import androidx.core.animation.addListener

class Demo {


}

fun main() {
    val animator = ValueAnimator.ofInt(0,100)
    animator.addListener(
        object :  Animator.AnimatorListener {
            override fun onAnimationStart(animation: Animator) {
                TODO("Not yet implemented")
            }

            override fun onAnimationEnd(animation: Animator) {
                TODO("Not yet implemented")
            }

            override fun onAnimationCancel(animation: Animator) {
                TODO("Not yet implemented")
            }

            override fun onAnimationRepeat(animation: Animator) {
                TODO("Not yet implemented")
            }

        }
    )

    animator.addListener(onStart = {
        //freestyle
    })

}